<?php if(!empty($student_all_profiles)) :?>
	<div class="accord">
	  <?php foreach($student_all_profiles as $v): ?>
			
			<?php
				$profile = isset($v['profile']) && $v['profile'] ? $v['profile'] : FALSE;
				$remarks = isset($v['remark']) && $v['remark'] ? $v['remark'] : FALSE;
				// vp($remarks);
			?>	

			<h4>SY <?php echo $profile->sy_from.' - '.$profile->sy_to; echo $profile->desc!=''?' ( '.$profile->desc.' )':''; ?></h4>

			<div>
				<?if($remarks):?>
					
					<div class="table-responsive">
							
						<table class="table table-bordered table-stripped">
							<tr class="info">
								<? if(!empty($grading_periods)) :?>
									<? foreach($grading_periods as $row) :?>
										<td><strong><?= ucwords(strtolower($row->gp_code)) ;?></strong></td>
									<? endforeach ;?>
								<? endif ;?>
							</tr>
							<?if($remarks):?>
								<tr>
								<?foreach($remarks as $k => $b ):?>
										<td><?=$b->remarks;?></td>
								<?endforeach;?>
								</tr>
							<?else:?>
							<tr>
								<td colspan="4">No Remarks Found. or you are not allowed to view remarks.</td>
							</tr>
							<?endif;?>
						</table>

					</div>

				<?else:?>
					<div class="alert alert-warning">No remarks found or you are not allowed to view such data.</div>
				<?endif;?>
			</div>

		<?php endforeach; ?>
	</div>
<?php endif; ?>